package com.twinkle.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @title: ClusterResult
 * @description:
 * @author: Paul
 * @date: 2023/3/13 18:58
 */
@Data
@TableName(value = "algo_preview_data_result")//指定表名
public class PreviewDataResult {
    @TableId(value = "id", type = IdType.AUTO)//指定自增策略
    /**
     * 自增id
     */
    private int id;
    private String modelId;
    private String algoName;
    private String param;
    private String appName;
    private String info;
    private String describ;
    private String trainCols;
    private String modelData;
    /**
     * 需求创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * 需求创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private int duration;
}
